import axiosInstance from '../utils/request.js'

export const labsApi = {
    getLabInfos() {
        return axiosInstance.get('/lab')
    },
    getLabByCampus() {
        return axiosInstance.get('/lab/names')
    },
    update(lab) {
        return axiosInstance.put('/lab',lab)
        
    },
    delete(lab) {
        return axiosInstance.delete('/lab', {
            data:{...lab}
        })
    },
    add(lab) {
        return axiosInstance.post('/lab',lab)
    }
    
    // getCampus() {
    //     return axiosInstance.get('/lab/campus')
    // }
}